package com.niit.service.impl;

import com.niit.dao.TypeMapper;
import com.niit.pojo.Typing;
import com.niit.service.TypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TypeServiceImpl implements TypeService {
    @Autowired
    private TypeMapper typeMapper;


    @Override
    public List<Typing> selectList() {
        return typeMapper.selectList();
    }

    @Override
    public Typing typeSelect(int t_id) {
        return typeMapper.typeSelect(t_id);
    }

    @Override
    public void typeInsert(Typing type) {
        typeMapper.typeInsert(type);
    }

    @Override
    public void typeUpdate(Typing type) {
        typeMapper.typeUpdate(type);
    }

    @Override
    public void typeDelete(int t_id) {
        typeMapper.typeDelete(t_id);
    }


}
